%p#notice= notice
- content_for(:panel_heading) do
  = @panel_heading
%form{:method => 'POST', :action => "/projects/#{@project.id}/set_settings" }
  = hidden_field_tag :authenticity_token, form_authenticity_token
  %input{:type => 'text', :name => 'id',  :value => @project.id, :hidden => true }

  %table{:width => '500px'}
    %tr
      %td{:width => '200px'}
        %label{:for => 'appid'} 
        appid:
        %input{:type => 'text',:name => 'appid',  :value => @rds[:appid] || ""}
      %td{:width => '200px'}
        %label{:for => 'secret'}
        secret:
        %input{:type => 'text',:name => 'secret',  :value => @rds[:secret] || ""}
    %tr
      %td        
        %label{:for => 'url'} 
          url:
          %input{:type => 'text',:name => 'url',  :value => @rds[:url] || ""}
      %td
        %label{:for => 'email'} 
          email:
          %input{:type => 'text',:name => 'email',  :value => @rds[:email] || ""}
    %tr
      %td
        %label{:for => 'number'} 
          number:
          %input{:type => 'text',:name => 'number',  :value => @rds[:number] || ""}      
      %td
        %label{:for => 'openid'} 
          openid:
          %input{:type => 'text',:name => 'openid',  :value => @rds[:openid] || ""}
    %tr
      %td
        %label{:for => 'sso_secret'} 
          sso_secret:
          %input{:type => 'text',:name => 'sso_secret',  :value => @rds[:sso_secret] || ""}    
      %td
        %input{:type => 'submit', :value => '保存'}
%p
%hr

%p 推送地址   
= "http://imdev.udeskmonkey.com:4568/projects/#{@project.id}/recv" 
%p 微信Token  
= "http://imdev.udeskmonkey.com:4568/projects/#{@project.id}/access_token?from=udesk"
%p
%hr

%form{:method => 'POST', :action => "/projects/#{@project.id}/send_msg" }
  = hidden_field_tag :authenticity_token, form_authenticity_token
  %label{:for => 'content'}
    content:
    %input{:type => 'text',:name => 'content',  :value => ''}

  %input{:type => 'submit', :value => '发送'}

%p



response 结果  
%form{:method => 'POST', :action => "/projects/#{@project.id}/cls_msg" }
  = hidden_field_tag :authenticity_token, form_authenticity_token
  %input{:type => 'submit', :value => '清空'}
%p
<textarea rows="5" cols = "80"> #{@rds.get(:rsp_body)}</textarea>


%p
推送结果
%form{:method => 'POST', :action => "/projects/#{@project.id}/cls_push" }
  = hidden_field_tag :authenticity_token, form_authenticity_token
  %input{:type => 'submit', :value => '清空'}
%p
<textarea rows="5" cols = "80"> #{@rds.get(:push_info)}</textarea>

= link_to 'Back', projects_path
